package com.botao.tip;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;
import org.springframework.transaction.annotation.EnableTransactionManagement;

/**
 * @author 星时代曹波涛
 */
@SpringBootApplication
@MapperScan("com.botao.tip.dao")
@EnableTransactionManagement
public class TipApplication extends SpringBootServletInitializer {

    public static void main(String[] args) {
        SpringApplication.run(TipApplication.class, args);
    }

    @Override
    protected SpringApplicationBuilder configure(SpringApplicationBuilder builder) {
        return builder.sources(TipApplication.class);
    }
}
